package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author wmz
 * @date 2024/1/25 13:43
 * @description FlavorMapper
 */
@Mapper
public interface FlavorMapper {
    /**
     * 插入口味
     * @param dishFlavorList
     */
    void insertFlavor(List<DishFlavor> dishFlavorList);

    /**
     * 根据dishIds删除数据
     * @param dishIds
     */
    void deleteFlavorByDishIds(List<Long> dishIds);

    /**
     * 根据dishId查询口味信息
     * @param dishId
     * @return
     */
    List<DishFlavor> selectFlavorByDishId(Long dishId);

    /**
     * 根据dishId删除口味信息
     * @param dishId
     */
    void deleteFlavorByDishId(Long dishId);
}
